package com.acoffee.java.staticProxy;

/**
 * @author acoffee
 * @create 2021-11-15 14:52
 */
public class CookieProxy implements CookieService {


    private CookieService cookieService;

    public CookieProxy(){
        this.cookieService = new CookieServiceImpl();
    }
    @Override
    public void Cooking() {
        System.out.println("洗菜");
        cookieService.Cooking();
        System.out.println("洗碗");
    }
}
